<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="jpath" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
	<script type="text/javascript" src="${jpath}/static/page/js/jquery-3.3.1.min.js"></script>
	<script type="text/javascript" src="${jpath}/static/page/js/bootstrap.min.js"></script>

	<link rel="stylesheet" type="text/css" href="${jpath}/static/page/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="${jpath}/static/page/css/dl.css">
	<title>登录/注册</title>
</head>
<body>
	<div class="t">
		<div class="top">
				<img src="${jpath}/static/page/img/Image.png" width="100%" height="100%" >
				<div>
				<div class="top-font toptext1 top-div ">
					双流互联网＋政银企  
				</div>
				<div class="top-font toptext2 top-div ">
					
					自动对接融资服务综合平台
				</div>
				<div class="top-font1 toptext3 top-div ">
					The Internet + government and silver enterprises' automatic 
				</div>
				<div class="top-font1 toptext4 top-div ">docking financing service </div>
				</div>
				<div class="container toptext">
						<div class="row">
							<div class="col-xs-6">注册</div>
							<div class="col-xs-6 iconf">登录</div>
						</div>
				</div>
				
		</div>
		<div class="shenti">
			<div class="container">
						<div class="row dengl">
							<div class="col-xs-12">
								<input type="text" id="yhxm" placeholder="老王" name="">
							</div>
						</div>
						<div class="row mima">
							<div class="col-xs-12">
								<input type="password" id="pwd" placeholder="123" name="">
							</div>
						</div>
						
						<div class="row">
							<div class="col-xs-12">
								&nbsp;
							</div>
						</div>

						<div class="row">
							<div class="col-xs-12 tijiao">
								<input type="submit" id="loginKey" value="登录" name="">
							</div>
						</div>

						<div class="row">
							<div class="col-xs-12">
								<button>手机号登录</button>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12 bottom">
								忘了密码?&nbsp;&nbsp;<a href="#">请点击</a>
							</div>
						</div>
				</div>
				
		</div>

	</div>
</body>
<script type="text/javascript">
	$(function(){
				$("#loginKey").click(function(){
					var yhxm = $("#yhxm").val();
					var pwd = $("#pwd").val();
					if(yhxm=="" || pwd==""){
						alert("请将登录信息填写完整");
						return false;
					}
					$.post("${jpath}/to_login",{yhxm:yhxm,pwd:pwd},function(data){
						var json = $.parseJSON(data);
						alert(json.resMsg);
						if(json.res != 0){
							location.href="${jpath}/page/zy";
						}
					});
				});
			});
</script>
</html>